<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:70:"/www/wwwroot/xunda-college/application/atxunda/view/user/training.html";i:1702273753;s:69:"/www/wwwroot/xunda-college/application/atxunda/view/index/header.html";i:1700617178;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>后台管理系统</title>
<link rel="stylesheet" href="__PUBLIC__css/pintuer.css?v=1.0">
<link rel="stylesheet" href="__PUBLIC__admin/admin.css">
<link rel="stylesheet" href="__PUBLIC__layui/css/layui.css">
<script src="__PUBLIC__js/jquery.js"></script>
<script src="__PUBLIC__js/pintuer.js"></script>
<script src="__PUBLIC__js/cookie.js"></script>
<script src="__PUBLIC__layui/layui.js"></script>
</head>
<style type="text/css">
	.refresh{width: 20px;height: 20px;float: right;margin:10px 20px;display: block;}
</style>
</head>
<?php if(request()->controller() != 'Index'): ?><img src="__PUBLIC__images/refresh.png" class="refresh" title="刷新"><?php endif; ?>
<script type="text/javascript">
	$('.refresh').click(function(){layer.msg('刷新中……');window.location.reload();})
</script>
<script type="text/javascript">
	function openwinx(url,name,w,h) {
		if(!w) w=screen.width-4;
		if(!h) h=screen.height-95;
		window.open(url,name,"width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
	}
</script>
<body>
	<div class="panel admin-panel">
		<form method="get" action="" id="listform">
			<div class="panel-head"><strong class="icon-reorder"> 实操列表</strong> </div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li style="font-size: 17px;">搜索：</li>
					<li>
						<select name="status" class="input" style="width:400px; line-height:17px;border: solid 1px #09f;font-weight: 700;" onchange="changesearch()"  id="nav">
							<option value="">请选择状态</option>
							<option value="1" <?php if($status == 0): ?>selected<?php endif; ?>>未点评</option>
							<option value="2" <?php if($status == 1): ?>selected<?php endif; ?>>已点评</option>
						</select>
					</li>
				</ul>
			</div>
			<table class="table table-hover text-center">
				<tr>
					<th>ID</th>
					<th>用户</th>
					<th style="text-align:left;">实操标题</th>
					<th>时间</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
				<?php foreach($data as $v): ?>
				<tr>
					<td><?php echo $v['id']; ?></td>
					<td><?php echo $v['know_nickname']; ?>/<?php echo $v['know_phone']; ?></td>
					<td align="left"><?php echo $v['nav_name']; ?><br/><?php echo $v['type_name']; ?><br/><?php echo $v['s_name']; ?><br/><?php echo $v['course_name']; ?></td>
					<td><?php echo $v['time']; ?></td>
					<td><?php switch($v['grade']): case "1": ?>成功<?php break; case "2": ?>失败<?php break; default: ?><font color="#f00">未点评</font>
					<?php endswitch; ?></td>
					<td><div class="button-group"><a class="button border-main" onclick="javascript:openwinx('<?php echo url('dianping',['id' => $v['id']]); ?>')"><span class="icon-edit"></span> <?php if($v['grade'] == 0): ?>点评<?php else: ?>修改点评<?php endif; ?></a></div></td>
				</tr>
				<?php endforeach; ?>
				<tr><td colspan="6"><?php echo $data->render(); ?></td></tr>
			</table>
		</form>
	</div>
</body></html>
<script>

//搜索
	function changesearch(){  
		$("#listform").submit();
	}
	function openwinx(url,name,w,h) {
		if(!w) w=screen.width-4;
		if(!h) h=screen.height-95;
		window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
	}
	$('.shuaxin').click(function(){
		history.go(0);
	});
	setcookie('refersh_time', 0);
	function refersh_window() {
		var refersh_time = getcookie('refersh_time');
		if(refersh_time == 1) {
			window.location.reload();
		}
	}
	setInterval("refersh_window()", 2000);
</script>